package ru.neoflex.chugunov.utils;

import ru.neoflex.chugunov.Word;

import com.gtranslate.Language;
import com.gtranslate.Translator;

public class TranslationService {
	private Translator translate = Translator.getInstance();

	public Word wordTranslate(Word w) {
		String trans = translate.translate(w.getWord(), Language.ENGLISH,
				Language.RUSSIAN);
		w.setTranslation(trans);
		return w;
	}
}
